namespace Skim.Ssms.AddIn.ActiveFileExplorer.Loader
{
    public static class DocumentLoaderFactory
    {
        public static IDocumentLoader Create(DocumentLoadType documentLoadType)
        {
            switch (documentLoadType)
            {
                case DocumentLoadType.ServerConnection:
                    return new ConnectionDocumentLoader();
                case DocumentLoadType.Name:
                    return new NameDocumentLoader();
                default:
                    // return new NullDocumentLoader();
                    return new TypeDocumentLoader();
            }
        }
    }
}